#include <stdio.h>
#include <assert.h>

char* my_memcpy(void* des,const void* src, size_t n)
{
	assert(des);
	assert(src);
	char* ret = (char*)des;
	while (n)
	{
		*(char*)des = *(char*)src;
		des = (char*)des + 1;
		src = (char*)src + 1;
		n--;
	}
	return ret;
}


int main()
{
	int a[10] = { 1,2,3,4,5,6,7,8,9,0 };
	int b[10] = { 0 };
	my_memcpy(b, a, 40);
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", b[i]);
	}

	return 0;
}